package com.wx.plugin.mp.core;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by zhou on 2016/11/27.
 */
@FeignClient(name = "WebAuthAPI", url = "${web_auth_api}")
public interface WebAuthAPI {

    @RequestMapping(value = "/sns/oauth2/access_token", method = RequestMethod.GET)
    String getWebAccessToken(@RequestParam("appid") String appid, @RequestParam("secret") String secret, @RequestParam("code") String code, @RequestParam("grant_type") String grant_type);


    @RequestMapping(value = "/merchant/order/getbyid", method = RequestMethod.POST)
    String getOrder(@RequestParam("access_token") String access_token, @RequestBody OrderRequestVO orderRequestVO);
}
